# Maintainer:
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=uhttpmock
pkgver=0.9.0
pkgrel=1
pkgdesc="HTTP web service mocking project for projects which use libsoup"
url="https://gitlab.freedesktop.org/pwithnall/uhttpmock"
depends=('glib2' 'libsoup3')
makedepends=('meson' 'gtk-doc')
license=('LGPL2.1')
arch=(x86_64)
source=(https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/archive/$pkgver/uhttpmock-$pkgver.tar.gz)
sha256sums=('9fbcdcbc3e4b1ccde2281e3010f169036862423c936ffc8904ab30daad474b07')

build() {
  meson build $pkgname-$pkgver \
    --prefix=/usr \
    -D introspection=false
  meson compile -C build
}

package() {
  meson install -C build --destdir="$pkgdir"
}
